﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThanhTu.GNC.Media.KQXS.DataAccess.BL;
using ThanhTu.GNC.Media.KQXS.Common;

namespace GNCMedia.KQXS
{
    public partial class ResultLotteryByDate : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string chooseDate = Request.QueryString["SelectDate"].ToString();
            DateTime dt = Utils.ToDateTime(chooseDate);
            int rowCount = 0;
            try
            {
                ResultLotteryBL vResultLotteryBL = new ResultLotteryBL();
                RepeaterResultByDate.DataSource = vResultLotteryBL.SelectAll_KQ_User_date(dt, 1, 5, ref rowCount);
                RepeaterResultByDate.DataBind();
            }
            catch (Exception ex)
            {
                Response.Write(
                  "LỖI: " + ex.Message);
            }
            finally
            {

            }
        }
    }
}